
package com.joysuch.wwyt.core.enums;

public enum SystemStatusCodes {

    SUCCESS(0, "system.code.success", "操作成功"),
    SESSION_TIME_OUT(-2, "system.code.session-time-out", "由于您长时间未操作，请重新登录"),
    UNAUTHORIZED_ACCESS(403, "system.code.unauthorized-access", "无权访问"),
    DATA_ERROR(500, "system.code.data_error", "数据异常");

    private int code;
    private String message;
    private String i18nCode;

    private SystemStatusCodes(int code, String i18nCode, String message) {
        this.code = code;
        this.i18nCode = i18nCode;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getI18nCode() {
        return i18nCode;
    }

    public void setI18nCode(String i18nCode) {
        this.i18nCode = i18nCode;
    }

}
